<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
	window.top.$('#display_center_id').css('display','none');
</script>
<div class="pad-lr-10">
<div id="searchid" style="">
<!-- <form name="searchform" action="" method="get" >
<input type="hidden" value="picture" name="m">
<input type="hidden" value="source_type" name="c">
<input type="hidden" value="index" name="a">
<input type="hidden" value="<?=$type?>" name="type">
<input type="hidden" value="1" name="search">
<input type="hidden" value="<?php echo $pc_hash;?>" name="pc_hash">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
		<div class="explain-col">
				
				<?php echo L('cn_name');?>：<input name="cn_name" type="text" value="<?php echo $_GET['cn_name']?>" class="input-text" />
				<input type="submit" name="search" class="button" value="<?php echo L('search');?>" />
	</div>
		</td>
		</tr>
    </tbody>
</table>
</form> -->
</div>
<form name="myform" action="?m=picture&c=picture&a=deleteAll&dosubmit=1" method="post" onsubmit="return confirm('<?php echo L('picture_info_delete')?>')">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th align='center' width=20>ID</th>
			<th align="center" width=100><?php echo L('cn_name')?></th>
			<th align='center' width=60><?php echo L('en_name')?></th>
			<th align='center' width=100><?php echo L('source_code')?></th>
			<th width="80"><?php echo L('reg_num')?></th>
			<th align='center' width=150><?php echo L('reg_url')?></th>
			<th align='center' width=80><?php echo L('qrcode_img')?></th>
			<th align='center' width="120"><?php echo L('update_time')?></th>
			<th align='center' width="70"><?php echo L('updated_by')?></th>
			<th align='center' width="150"><?php echo L('operations_manage')?></th>
		</tr>
	</thead>
<tbody>
<?php if($categorys){echo $categorys;}else{?>
<tr><td colspan='9' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
<?php }?>
<!--<?php
foreach($source_info as $k=>$v) {
?>
    <tr>
		<td align="left"><input type="checkbox" value="<?php echo $v['id']?>" name="ids[]"></td>
		<td align="left"><?php echo $v['id']?></td>
		<td align="left"><?php echo $v['cn_name']?></td>
		<td align="left"><?php echo $v['en_name']?></td>
		<td align="left"><?php echo $v['create_time']?></td>
		<td align="left"><?php if($v['status'] == 1) { echo '正常';}elseif($v['status'] == 2){ echo '删除';}?></td>
		<td align="left">
			<a href="javascript:;" onclick="edit(<?php echo $v['id']?>, '<?php echo new_addslashes(new_html_special_chars($v['cn_name']))?>')"
			title="<?php echo L('edit')?>">[<?php echo L('edit')?>]</a>
			<a href="?m=picture&c=source_type&a=delete&id=<?php echo $v['id']?>" onClick="return confirm('确认要删除[<?php echo $v['cn_name']?>]？')">[<?php echo L('delete')?>]</a>
		</td>
    </tr>
<?php
	}

?>-->
</tbody>
</table>

<div class="btn">
<!--<label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label>  <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>"/> -->
<!-- <input type="button" class="button" value="--><?php //echo L('import_collection_points')?><!--" onclick="import_spider()" />-->
</div>

<div id="pages"><?php echo $pages?></div>
</div>
</form>
</div>
<script type="text/javascript">
	function edit(id, name) {
		window.top.art.dialog({id:'edit'}).close();
		window.top.art.dialog({title:'<?php echo L('edit')?> '+name+' ',id:'edit',iframe:'?m=reg_child&c=source&a=edit&id='+id,width:'700',height:'350'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
	}
	function edit1(id, name) {
		window.top.art.dialog({id:'add'}).close();
		window.top.art.dialog({title:'<?php echo L('add_sub_category')?>',id:'add',iframe:'?m=reg_child&c=source&a=add&parentid='+id,width:'700',height:'350'}, function(){var d = window.top.art.dialog({id:'add'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'add'}).close()});
	}
</script>
</body>
</html>